/*
Uninclude: Tool for detecting unused #included files in C and C++ code.
    Copyright (C) 2012  Daniel Gutson, FuDePAN

    Uninclude is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version./

    Uninclude is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Uninclude.  If not, see <http://www.gnu.org/licenses/>.

    This is the API that the includes tree nodes use.
*/

#ifndef NODE_API_H
#define NODE_API_H

#include <string>
using namespace std;

struct NodeAPI
{
    virtual bool programsIdentical() = 0;
    virtual void reportIncludeNotNeeded(const string& fileName, const string& includeName, size_t line) = 0;

    virtual bool checkIfIncludeFileCompiles(const string& fileName) = 0;
    virtual void reportIncludeNotStandAlone(const string& fileName) = 0;

    virtual ~NodeAPI(){} // will not delete through this class. Just to shut the compiler off.
};

#endif

